package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Employee;
import com.itheima.vo.EmployeeVo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface EmploeeService {
    public EmployeeVo login(String username, String password);

   public void clearToken(String token);

    EmployeeVo getById(String id);

    public PageInfo page(String name,Integer start,Integer pageSize);

    boolean save(Employee employee);

    boolean update(Employee employee);

    Employee getAllById(String id);
}
